<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>InfUserTable</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.0">
<link rel="home" href="index.html" title="libinfinity-0.4 Reference Manual">
<link rel="up" href="ch02.html" title="Common libinfinity API">
<link rel="prev" href="InfChatBuffer.html" title="InfChatBuffer">
<link rel="next" href="InfUser.html" title="InfUser">
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="InfChatBuffer.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">libinfinity-0.4 Reference Manual</th>
<td><a accesskey="n" href="InfUser.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#InfUserTable.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#InfUserTable.description" class="shortcut">Description</a>
                   | 
                  <a href="#InfUserTable.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#InfUserTable.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry" title="InfUserTable">
<a name="InfUserTable"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="InfUserTable.top_of_page"></a>InfUserTable</span></h2>
<p>InfUserTable — User information storage</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1" title="Stability Level">
<a name="InfUserTable.stability-level"></a><h2>Stability Level</h2>
Unstable, unless otherwise indicated
</div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="InfUserTable.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;libinfinity/common/inf-user-table.h&gt;

<span class="returnvalue">void</span>                (<a class="link" href="InfUserTable.html#InfUserTableForeachUserFunc" title="InfUserTableForeachUserFunc ()">*InfUserTableForeachUserFunc</a>)      (<em class="parameter"><code><a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a> *user</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
                    <a class="link" href="InfUserTable.html#InfUserTable-struct" title="InfUserTable">InfUserTable</a>;
                    <a class="link" href="InfUserTable.html#InfUserTableClass" title="InfUserTableClass">InfUserTableClass</a>;
<a class="link" href="InfUserTable.html" title="InfUserTable"><span class="returnvalue">InfUserTable</span></a> *      <a class="link" href="InfUserTable.html#inf-user-table-new" title="inf_user_table_new ()">inf_user_table_new</a>                  (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">void</span>                <a class="link" href="InfUserTable.html#inf-user-table-add-user" title="inf_user_table_add_user ()">inf_user_table_add_user</a>             (<em class="parameter"><code><a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> *user_table</code></em>,
                                                         <em class="parameter"><code><a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a> *user</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="InfUserTable.html#inf-user-table-remove-user" title="inf_user_table_remove_user ()">inf_user_table_remove_user</a>          (<em class="parameter"><code><a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> *user_table</code></em>,
                                                         <em class="parameter"><code><a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a> *user</code></em>);
<a class="link" href="InfUser.html" title="InfUser"><span class="returnvalue">InfUser</span></a> *           <a class="link" href="InfUserTable.html#inf-user-table-lookup-user-by-id" title="inf_user_table_lookup_user_by_id ()">inf_user_table_lookup_user_by_id</a>    (<em class="parameter"><code><a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> *user_table</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> id</code></em>);
<a class="link" href="InfUser.html" title="InfUser"><span class="returnvalue">InfUser</span></a> *           <a class="link" href="InfUserTable.html#inf-user-table-lookup-user-by-name" title="inf_user_table_lookup_user_by_name ()">inf_user_table_lookup_user_by_name</a>  (<em class="parameter"><code><a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> *user_table</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="InfUserTable.html#inf-user-table-foreach-user" title="inf_user_table_foreach_user ()">inf_user_table_foreach_user</a>         (<em class="parameter"><code><a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> *user_table</code></em>,
                                                         <em class="parameter"><code><a class="link" href="InfUserTable.html#InfUserTableForeachUserFunc" title="InfUserTableForeachUserFunc ()"><span class="type">InfUserTableForeachUserFunc</span></a> func</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="InfUserTable.html#inf-user-table-foreach-local-user" title="inf_user_table_foreach_local_user ()">inf_user_table_foreach_local_user</a>   (<em class="parameter"><code><a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> *user_table</code></em>,
                                                         <em class="parameter"><code><a class="link" href="InfUserTable.html#InfUserTableForeachUserFunc" title="InfUserTableForeachUserFunc ()"><span class="type">InfUserTableForeachUserFunc</span></a> func</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
</pre>
</div>
<div class="refsect1" title="Object Hierarchy">
<a name="InfUserTable.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----InfUserTable
</pre>
</div>
<div class="refsect1" title="Signals">
<a name="InfUserTable.signals"></a><h2>Signals</h2>
<pre class="synopsis">
  "<a class="link" href="InfUserTable.html#InfUserTable-add-local-user" title='The "add-local-user" signal'>add-local-user</a>"                                 : Run Last
  "<a class="link" href="InfUserTable.html#InfUserTable-add-user" title='The "add-user" signal'>add-user</a>"                                       : Run Last
  "<a class="link" href="InfUserTable.html#InfUserTable-remove-local-user" title='The "remove-local-user" signal'>remove-local-user</a>"                              : Run Last
  "<a class="link" href="InfUserTable.html#InfUserTable-remove-user" title='The "remove-user" signal'>remove-user</a>"                                    : Run Last
</pre>
</div>
<div class="refsect1" title="Description">
<a name="InfUserTable.description"></a><h2>Description</h2>
<p>
<a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> manages multiple <a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a> objects and provides an easy way to
look up users by their ID and name. All users within a user table must have
a unique ID and name. The user table is used by <a class="link" href="InfSession.html" title="InfSession"><span class="type">InfSession</span></a> to store the
users within the session.
</p>
</div>
<div class="refsect1" title="Details">
<a name="InfUserTable.details"></a><h2>Details</h2>
<div class="refsect2" title="InfUserTableForeachUserFunc ()">
<a name="InfUserTableForeachUserFunc"></a><h3>InfUserTableForeachUserFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                (*InfUserTableForeachUserFunc)      (<em class="parameter"><code><a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a> *user</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
This callback is called for every user iterated by
<a class="link" href="InfUserTable.html#inf-user-table-foreach-user" title="inf_user_table_foreach_user ()"><code class="function">inf_user_table_foreach_user()</code></a> or <a class="link" href="InfUserTable.html#inf-user-table-foreach-local-user" title="inf_user_table_foreach_local_user ()"><code class="function">inf_user_table_foreach_local_user()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>user</code></em> :</span></p></td>
<td>The <a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a> for the current iteration.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>The user_data passed to <a class="link" href="InfUserTable.html#inf-user-table-foreach-user" title="inf_user_table_foreach_user ()"><code class="function">inf_user_table_foreach_user()</code></a> or
<a class="link" href="InfUserTable.html#inf-user-table-foreach-local-user" title="inf_user_table_foreach_local_user ()"><code class="function">inf_user_table_foreach_local_user()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="InfUserTable">
<a name="InfUserTable-struct"></a><h3>InfUserTable</h3>
<pre class="programlisting">typedef struct _InfUserTable InfUserTable;</pre>
<p>
<a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> is an opaque data type. You should only access it via the
public API functions.
</p>
</div>
<hr>
<div class="refsect2" title="InfUserTableClass">
<a name="InfUserTableClass"></a><h3>InfUserTableClass</h3>
<pre class="programlisting">typedef struct {
  void(*add_user)(InfUserTable* user_table,
                  InfUser* user);

  void(*remove_user)(InfUserTable* user_table,
                     InfUser* user);

  void(*add_local_user)(InfUserTable* user_table,
                        InfUser* user);

  void(*remove_local_user)(InfUserTable* user_table,
                           InfUser* user);
} InfUserTableClass;
</pre>
<p>
Signals for the <a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> class.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="InfUserTableClass.add-user"></a>add_user</code></em> ()</span></p></td>
<td>Default signal handler for the <a class="link" href="InfUserTable.html#InfUserTable-add-user" title='The "add-user" signal'><span class="type">"add_user"</span></a> signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="InfUserTableClass.remove-user"></a>remove_user</code></em> ()</span></p></td>
<td>Default signal handler for the <a class="link" href="InfUserTable.html#InfUserTable-remove-user" title='The "remove-user" signal'><span class="type">"remove_user"</span></a>
signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="InfUserTableClass.add-local-user"></a>add_local_user</code></em> ()</span></p></td>
<td>Default signal handler for the
<a class="link" href="InfUserTable.html#InfUserTable-add-local-user" title='The "add-local-user" signal'><span class="type">"add_local_user"</span></a> signal.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="InfUserTableClass.remove-local-user"></a>remove_local_user</code></em> ()</span></p></td>
<td>Default signal handler for the
<a class="link" href="InfUserTable.html#InfUserTable-remove-local-user" title='The "remove-local-user" signal'><span class="type">"remove_local_user"</span></a> signal.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="inf_user_table_new ()">
<a name="inf-user-table-new"></a><h3>inf_user_table_new ()</h3>
<pre class="programlisting"><a class="link" href="InfUserTable.html" title="InfUserTable"><span class="returnvalue">InfUserTable</span></a> *      inf_user_table_new                  (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new, empty user table.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A <a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a>.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="inf_user_table_add_user ()">
<a name="inf-user-table-add-user"></a><h3>inf_user_table_add_user ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                inf_user_table_add_user             (<em class="parameter"><code><a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> *user_table</code></em>,
                                                         <em class="parameter"><code><a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a> *user</code></em>);</pre>
<p>
Inserts <em class="parameter"><code>user</code></em> into <em class="parameter"><code>user_table</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_table</code></em> :</span></p></td>
<td>A <a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user</code></em> :</span></p></td>
<td>A <a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a> not already contained in <em class="parameter"><code>user_table</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="inf_user_table_remove_user ()">
<a name="inf-user-table-remove-user"></a><h3>inf_user_table_remove_user ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                inf_user_table_remove_user          (<em class="parameter"><code><a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> *user_table</code></em>,
                                                         <em class="parameter"><code><a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a> *user</code></em>);</pre>
<p>
Removes <em class="parameter"><code>user</code></em> from <em class="parameter"><code>uesr_table</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_table</code></em> :</span></p></td>
<td>A <a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user</code></em> :</span></p></td>
<td>A <a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a> contained in <em class="parameter"><code>table</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="inf_user_table_lookup_user_by_id ()">
<a name="inf-user-table-lookup-user-by-id"></a><h3>inf_user_table_lookup_user_by_id ()</h3>
<pre class="programlisting"><a class="link" href="InfUser.html" title="InfUser"><span class="returnvalue">InfUser</span></a> *           inf_user_table_lookup_user_by_id    (<em class="parameter"><code><a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> *user_table</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> id</code></em>);</pre>
<p>
Returns the <a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a> with the given User ID in <em class="parameter"><code>user_table</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_table</code></em> :</span></p></td>
<td>A <a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
<td>User ID to lookup.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A <a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="inf_user_table_lookup_user_by_name ()">
<a name="inf-user-table-lookup-user-by-name"></a><h3>inf_user_table_lookup_user_by_name ()</h3>
<pre class="programlisting"><a class="link" href="InfUser.html" title="InfUser"><span class="returnvalue">InfUser</span></a> *           inf_user_table_lookup_user_by_name  (<em class="parameter"><code><a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> *user_table</code></em>,
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
<p>
Returns an <a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a> with the given name if there is one.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_table</code></em> :</span></p></td>
<td>A <a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>User name to lookup.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A <a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="inf_user_table_foreach_user ()">
<a name="inf-user-table-foreach-user"></a><h3>inf_user_table_foreach_user ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                inf_user_table_foreach_user         (<em class="parameter"><code><a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> *user_table</code></em>,
                                                         <em class="parameter"><code><a class="link" href="InfUserTable.html#InfUserTableForeachUserFunc" title="InfUserTableForeachUserFunc ()"><span class="type">InfUserTableForeachUserFunc</span></a> func</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
Calls the given function for each user in the user_table. You should not
add or remove users while this function is being executed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_table</code></em> :</span></p></td>
<td>A <a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
<td>The function to call for each user.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>User data to pass to the function.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="inf_user_table_foreach_local_user ()">
<a name="inf-user-table-foreach-local-user"></a><h3>inf_user_table_foreach_local_user ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                inf_user_table_foreach_local_user   (<em class="parameter"><code><a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> *user_table</code></em>,
                                                         <em class="parameter"><code><a class="link" href="InfUserTable.html#InfUserTableForeachUserFunc" title="InfUserTableForeachUserFunc ()"><span class="type">InfUserTableForeachUserFunc</span></a> func</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
Calls the given function for each local user in the user_table. A local
user is a user that has the <code class="literal">INF_USER_LOCAL</code> flag set and that has not
status <code class="literal">INF_USER_UNAVAILABLE</code>. You should not add or remove users while this
function is being executed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_table</code></em> :</span></p></td>
<td>A <a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
<td>The function to call for each user.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>User data to pass to the function.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" title="Signal Details">
<a name="InfUserTable.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2" title='The "add-local-user" signal'>
<a name="InfUserTable-add-local-user"></a><h3>The <code class="literal">"add-local-user"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> *user_table,
                                                        <a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a>      *user,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>      user_data)       : Run Last</pre>
<p>
This signal is emitted when a user is added to the user table and has the
<code class="literal">INF_USER_LOCAL</code> flag set. In this case, <a class="link" href="InfUserTable.html#InfUserTable-add-user" title='The "add-user" signal'><span class="type">"add-user"</span></a> is
emitted as well.
</p>
<p>
This signal is also emitted when an existing user receives the
<code class="literal">INF_USER_LOCAL</code> flag. This occurs when a user rejoins locally after
leaving the session (possibly having the <code class="literal">INF_USER_LOCAL</code> flag removed
during their absence). <a class="link" href="InfUserTable.html#InfUserTable-add-user" title='The "add-user" signal'><span class="type">"add-user"</span></a> is not emitted in this
case.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_table</code></em> :</span></p></td>
<td>The <a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> in which <em class="parameter"><code>user</code></em> has been set as local
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user</code></em> :</span></p></td>
<td>The <a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a> that has set as local
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title='The "add-user" signal'>
<a name="InfUserTable-add-user"></a><h3>The <code class="literal">"add-user"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> *user_table,
                                                        <a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a>      *user,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>      user_data)       : Run Last</pre>
<p>
This signal is emitted when <a class="link" href="InfUserTable.html#inf-user-table-add-user" title="inf_user_table_add_user ()"><code class="function">inf_user_table_add_user()</code></a> is called. Note
that this does not happen if <em class="parameter"><code>user</code></em> rejoins the session and has already
been added to <em class="parameter"><code>user_table</code></em> previously.
</p>
<p>
<a class="link" href="InfUserTable.html#InfUserTable-add-local-user" title='The "add-local-user" signal'><span class="type">"add-local-user"</span></a> may also be emitted at this point if
<em class="parameter"><code>user</code></em> has the <code class="literal">INF_USER_LOCAL</code> flag set.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_table</code></em> :</span></p></td>
<td>The <a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> into which <em class="parameter"><code>user</code></em> has been added
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user</code></em> :</span></p></td>
<td>The <a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a> that has been added into <em class="parameter"><code>user_table</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title='The "remove-local-user" signal'>
<a name="InfUserTable-remove-local-user"></a><h3>The <code class="literal">"remove-local-user"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> *user_table,
                                                        <a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a>      *user,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>      user_data)       : Run Last</pre>
<p>
This signal is emitted when a user is removed from the user table and
had the <code class="literal">INF_USER_LOCAL</code> flag set. In this case,
<a class="link" href="InfUserTable.html#InfUserTable-remove-user" title='The "remove-user" signal'><span class="type">"remove-user"</span></a> is emitted as well.
</p>
<p>
This signal is also emitted when <em class="parameter"><code>user</code></em> loses the <code class="literal">INF_USER_LOCAL</code> flag.
This occurs when the local <em class="parameter"><code>user</code></em> leaves the session.
<a class="link" href="InfUserTable.html#InfUserTable-remove-user" title='The "remove-user" signal'><span class="type">"remove-user"</span></a> is not emitted and the status of <em class="parameter"><code>user</code></em> is set
to <code class="literal">INF_USER_UNAVAILABLE</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_table</code></em> :</span></p></td>
<td>The <a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> in which <em class="parameter"><code>user</code></em> is no longer local
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user</code></em> :</span></p></td>
<td>The <a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a> that is no longer local
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title='The "remove-user" signal'>
<a name="InfUserTable-remove-user"></a><h3>The <code class="literal">"remove-user"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> *user_table,
                                                        <a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a>      *user,
                                                        <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>      user_data)       : Run Last</pre>
<p>
This signal is emitted when <a class="link" href="InfUserTable.html#inf-user-table-remove-user" title="inf_user_table_remove_user ()"><code class="function">inf_user_table_remove_user()</code></a> is called. This
does not usually happen, as users leaving a session do not get removed
from the table.
</p>
<p>
<a class="link" href="InfUserTable.html#InfUserTable-remove-local-user" title='The "remove-local-user" signal'><span class="type">"remove-local-user"</span></a> may also be emitted at this point if
<em class="parameter"><code>user</code></em> has the <code class="literal">INF_USER_LOCAL</code> flag set.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_table</code></em> :</span></p></td>
<td>The <a class="link" href="InfUserTable.html" title="InfUserTable"><span class="type">InfUserTable</span></a> from which <em class="parameter"><code>user</code></em> has been remove
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user</code></em> :</span></p></td>
<td>The <a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a> that has been removed from <em class="parameter"><code>user_table</code></em>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" title="See Also">
<a name="InfUserTable.see-also"></a><h2>See Also</h2>
<a class="link" href="InfUser.html" title="InfUser"><span class="type">InfUser</span></a>, <a class="link" href="InfSession.html" title="InfSession"><span class="type">InfSession</span></a>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.15</div>
</body>
</html>